package com.imooc.business.core.executor.calculate;

import org.springframework.core.Ordered;

import java.util.Map;

/**
 * @author Tim
 * @description: 表达式处理器。继承Ordered是为了扩展，以后如果有更好的表达式引擎可以方便切换
 */
public interface ExpressionProcess extends Ordered {
    <T>T process(Class<T> javaType, String funExpression,
                 Map<String, Object> params, Object defaultValue);
}
